//
//  UIImage+WYSaveImage.m
//  Boss
//
//  Created by admin on 2018/6/13.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "UIImage+WYSaveImage.h"

@implementation UIImage (WYSaveImage)
-(NSString *)QCloudTempFilePathWithExtension:(NSString *)extension
{
   // NSString* fileName = [NSUUID UUID].UUIDString;
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    // 设置时间格式
    formatter.dateFormat = @"yyyyMMddHHmmsssss";
    NSString *fileName = [formatter stringFromDate:[NSDate date]];
    NSString* path = NSTemporaryDirectory();
    path = [path stringByAppendingPathComponent:fileName];
    path = [path stringByAppendingPathExtension:extension];
    return path;
}
-(NSString *)QCloudTempFilePathWithExtension:(NSString *)extension WithCount:(NSString *)count
{
    // NSString* fileName = [NSUUID UUID].UUIDString;
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    // 设置时间格式
    formatter.dateFormat = @"yyyyMMddHHmmsssss";
    NSString *fileName = [formatter stringFromDate:[NSDate date]];
    NSString* path = NSTemporaryDirectory();
   // fileName =[fileName stringByAppendingPathComponent:count];
    fileName = [NSString stringWithFormat:@"%@%@",fileName,count];
    path = [path stringByAppendingPathComponent:fileName];
    path = [path stringByAppendingPathExtension:extension];
    return path;
}



@end
